package ca.newcommerce.youtube.feeds
{
    import ca.newcommerce.youtube.data.*;

    public class CommentFeed extends AbstractFeed
    {

        public function CommentFeed(param1:String)
        {
            super(param1);
            return;
        }// end function

        public function first() : CommentData
        {
            var _loc_1:int = 0;
            _feedPointer = 0;
            return this.getAt(_loc_1);
        }// end function

        public function getAt(param1:Number) : CommentData
        {
            if (param1 >= 0 && param1 < count)
            {
                return new CommentData(_entries[param1]);
            }
            return null;
        }// end function

        public function next() : CommentData
        {
            return this.getAt(++_feedPointer);
        }// end function

        public function last() : CommentData
        {
            _feedPointer = count - 1;
            return this.getAt(--count);
        }// end function

        public function previous() : CommentData
        {
            return this.getAt(--_feedPointer);
        }// end function

    }
}
